﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Styx.Common;

namespace OCBotBase
{
    class Mount
    {
        public String Name;
        public Int32 ItemID;
        public Int32 SpellID;
        public Int32 VendorID;
        public Int32 Currency;
        public Int32 CurrencyAmount;
        public Int32 Reputation;
        public Int32 ReputationLevel;

        public Mount()
        {

        }

        public void setValue(String valName, String valValue)
        {
            switch (valName)
            {
                case "Name":
                    Name = valValue;
                    return;
                case "ItemID":
                    ItemID = Convert.ToInt32(valValue);
                    return;
                case "SpellID":
                    SpellID = Convert.ToInt32(valValue);
                    return;
                case "VendorID":
                    VendorID = Convert.ToInt32(valValue);
                    return;
                case "Currency":
                    Currency = Convert.ToInt32(valValue);
                    return;
                case "CurrencyAmount":
                    CurrencyAmount = Convert.ToInt32(valValue);
                    return;
                case "Reputation":
                    Reputation = Convert.ToInt32(valValue);
                    return;
                case "ReputationLevel":
                    ReputationLevel = Convert.ToInt32(valValue);
                    return;
                default:
                    Logging.Write("[OCBot] Found value {0} could not comprehend", valName);
                    return;
            }
        }
    }
}
